Class WebmasterTools::VerificationController
In: lib/webmaster_tools/verification.rb
Parent: ActionController::Base

A custom controller that we‘ll use for serving the various webmaster verification files

Methods

google   live   yahoo  

Public Instance methods

GET /google<key>.html Google does not require any content in the file

[Source]

    # File lib/webmaster_tools/verification.rb, line 62
62:     def google
63:       render :nothing => true
64:     end

GET /LiveSearchSiteAuth.xml Live requires an xml file with all of the authenticated users

[Source]

    # File lib/webmaster_tools/verification.rb, line 74
74:     def live
75:       users = WebmasterTools::Verification::Config.authorized_accounts(:live).map(&:last)
76:       xml = %Q{<?xml version="1.0"?><users><user>#{users.join("</user><user>")}</user></users>}
77:       render :xml => xml
78:     end

GET /y_key_<key>.html Yahoo requires both a filename and content

[Source]

    # File lib/webmaster_tools/verification.rb, line 68
68:     def yahoo
69:       render :text => params[:content]
70:     end

[Validate]